package com.rz.htk.config;

/**
 * @ClassName ExpressCodeServiceImpl
 * @Description redis key
 * @Author maweiyue
 * @Date 2019/3/28 13:42
 */
public class RedisKeyConfig {

    /** 快递单号池 */
    public static final String EXPRESS_CODE_QUEUE = "express_code_queue";
    public static final String ORDER_CODE = "order_code";
    public static final String PRICE = "product_price";
    public static final String CenterPlace = "product_price";

    /** 汇率前缀 */
    private static final String EXCHANGE_RATE = "exchange_rate";
    /** 汇率：美元兑人民币 */
    public static final String USD_CNY = "USD/CNY";

    /**
     * 获取汇率key
     * @param key 例如，美元对人民币：USD/RMK
     * @return
     */
    public static String getExchangeRateKey(String key){
        return EXCHANGE_RATE + "_" + key;
    }
}